var fs = require('fs')
var https = require('https')
var options = {
  key: fs.readFileSync('./server.key'),
  cert: fs.readFileSync('./server.crt'),
  ca: [fs.readFileSync('./server.csr')]
}
https.createServer(options, (req, res) => {
  var authorized = req.socket.authorized ? 'authorized' : 'unauthorized'
  res.writeHead(200)
  res.write('Welcome')
  res.end()
}).listen(8080)
